#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#include "ppport.h"

#include "dumpfile.h"


MODULE = IssDump		PACKAGE = IssDump		


int
Dmp_Load(path)
	char *	path

unsigned long
Dmp_Size()

void *
Dmp_OffsetToBuffer(offset)
	Iu32	offset

unsigned long
Dmp_Iu32AtOffset(offset, endian)
    Iu32    offset
    Iu32    endian

unsigned short
Dmp_Iu16AtOffset(offset, endian)
    Iu32    offset
    Iu32    endian

unsigned char
Dmp_Iu8AtOffset(offset)
    Iu32    offset

unsigned long
Dmp_Iu32AtPpc(ppc)
    Iu32    ppc

unsigned short
Dmp_Iu16AtPpc(ppc)
    Iu32    ppc

unsigned char
Dmp_Iu8AtPpc(ppc)
    Iu32    ppc

Iu32
Dmp_SGE_Address(index)
    Iu32 index

Iu32
Dmp_SGE_Length(index)
    Iu32 index

Iu32
Dmp_SG_Length();

Iu32
Dmp_PpcToOffset(ppc)
    Iu32 ppc

Iu32
Dmp_OffsetToPpc(offset)
    Iu32 offset

void
Dmp_PrintHeader()

long
Dmp_Iu32Search(entry, start)
    Iu32 entry
    Iu32 start